module.exports = function (grunt) {
    gb = {};
    // 配置
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        concat: {
            domop: {
                src: [
                    'project/src/libs/jquery-1.6.2.min.js',
                    'project/src/libs/TweenMax.min.js',
                    'project/src/libs/gbbase.js',
                    'project/src/libs/gbdebug.js',
                    'project/src/libs/gbmvc.js',
                    'project/src/libs/gbsite.js'
                ],
                dest: 'project/js/gb.js'
            }
        },
        uglify: {
            options: {
                banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
            },
            build: {
                src: 'project/js/gb.js',
                dest: 'project/js/gb.min.js'
            }
        }
    });
    // 载入concat和uglify插件，分别对于合并和压缩
    grunt.loadNpmTasks('grunt-contrib-concat');
    grunt.loadNpmTasks('grunt-contrib-uglify');
    // 注册任务
    grunt.registerTask('default', ['concat', 'uglify']);
};
